package com.vehicle.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-21
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Area对象", description="")
public class Area implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "区域ID")
        @TableId(value = "area_id", type = IdType.AUTO)
      private Integer areaId;

      @ApiModelProperty(value = "区域名称(比如：北区，西区，东区等等）")
      private String name;

      @ApiModelProperty(value = "区域位置")
      private String location;

      @ApiModelProperty(value = "该区域所停放车辆类型")
      private Integer categoryId;

      @ApiModelProperty(value = "该区域总车位数")
      private Integer parkingNumber;

      @ApiModelProperty(value = "该区域空闲车位数")
      private Integer freeNumber;

      @ApiModelProperty(value = "该区域创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty(value = "该区域信息修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      @ApiModelProperty(value = "该区域信息是否已删除（0：未删除，1：已删除）")
      @TableLogic
    private Integer deleted;

      @ApiModelProperty(value = "经度")
    private String longitude;

      @ApiModelProperty(value = "纬度")
     private String latitude;

      @ApiModelProperty(value = "摄像头个数")
  private Integer cameras;

      @ApiModelProperty(value = "灯光个数")
  private Integer lights;

      @ApiModelProperty(value = "保安人员个数")
  private  Integer securityPersonnel;

}
